﻿using System;

namespace FluentPS.Attributes
{
    [AttributeUsage(AttributeTargets.Property)]
    public class PSNativeFieldAttribute : PSFieldAttribute
    {
        public PSNativeFieldAttribute()
            : base(string.Empty)
        {
            IsReadOnly = false;
        }

        public PSNativeFieldAttribute(string fieldUid, string columnName)
            : base(string.IsNullOrEmpty(fieldUid) ? Guid.Empty.ToString() : fieldUid)
        {
            ColumnName = columnName;
            IsReadOnly = false;
        }

        public string ColumnName { get; set; }
        public bool IsReadOnly { get; set; }
    }
}
